package cn.jvtc.jx.a0603laihongrong.Receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class MyReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        if ("密码正确".equals(intent.getStringExtra("msg"))){
            Toast.makeText(context, "密码正确", Toast.LENGTH_SHORT).show();
        }else{
            Toast.makeText(context, "账号或密码错误", Toast.LENGTH_SHORT).show();
        }
    }
}
